<%--
  Created by IntelliJ IDEA.
  User: yangbushudemao
  Date: 2021/5/13
  Time: 11:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath();%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!-- f标签 取得jsp一些函数工具 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="f"%>
<!-- 格式化标签 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form class="form-horizontal" role="form" id="addRoleForm">
    <div class="form-group">
        <label for="uname" class="col-sm-5 control-label">用户名称:</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="uname" name="uname" placeholder="请输角色名字">
        </div>
    </div>
    <div class="form-group">
        <label for="rid" class="col-sm-5 control-label">职位:</label>
        <div class="col-sm-5">
            <c:forEach items="${list}" var="role">
                    <input type="checkbox" value="${role.rid}" id="rid" name="rid">${role.rname}<br>
                </c:forEach>
        </div>
    </div>
</form>
</body>
</html>
